package dz.chuxin.app.sample;

import android.content.Intent;
import android.view.MenuItem;

import dz.chuxin.app.core.BaseActivity;
import dz.chuxin.app.R;

/**
 * Created by chuxin on 2016/6/30.
 */
public class ProfileActivity extends BaseActivity {

    @Override
    protected void setUpContentView() {
        setContentView(R.layout.activity_profile, R.string.text_profile, R.menu.menu_profile);
    }

    @Override
    public boolean onMenuItemClick(MenuItem item) {
        switch (item.getItemId()) {
            case R.id.action_list_sample:
                startActivity(new Intent(this, dz.chuxin.app.sample.RecyclerViewSampleActivity.class));
                break;
            case R.id.action_section_list:
                startActivity(new Intent(this, SectionRecyclerSampleActivity.class));
                break;
        }
        return super.onMenuItemClick(item);
    }
}
